﻿using System;
namespace Maticsoft.Model
{
    /// <summary>
    /// SO_SOMain:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class SO_SOMain
    {
        public SO_SOMain()
        { }
        #region Model
        private string _cstcode;
        private DateTime _ddate;
        private string _csocode;
        private string _ccuscode;
        private string _cdepcode;
        private string _cpersoncode;
        private string _csccode;
        private string _ccusoaddress;
        private string _cpaycode;
        private string _cexch_name;
        private decimal? _iexchrate;
        private decimal? _itaxrate;
        private decimal? _imoney;
        private string _cmemo;
        private int? _istatus;
        private string _cmaker;
        private string _cverifier;
        private string _ccloser;
        private bool _bdisflag;
        private string _cdefine1;
        private string _cdefine2;
        private string _cdefine3;
        private DateTime? _cdefine4;
        private int? _cdefine5;
        private DateTime? _cdefine6;
        private decimal? _cdefine7;
        private string _cdefine8;
        private string _cdefine9;
        private string _cdefine10;
        private bool _breturnflag = false;
        private string _ccusname;
        private bool _border = false;
        private int _id = 0;
        private int _ivtid = 0;
        private string _cchanger;
        private string _cbustype = "普通销售";
        private string _ccrechpname;
        private string _cdefine11;
        private string _cdefine12;
        private string _cdefine13;
        private string _cdefine14;
        private int? _cdefine15;
        private decimal? _cdefine16;
        private string _coppcode;
        private string _clocker;
        private DateTime? _dpremodatebt;
        private DateTime? _dpredatebt;
        private string _cgatheringplan;
        private string _caddcode;
        private int? _iverifystate = 0;
        private int? _ireturncount = 0;
        private int? _iswfcontrolled = 0;
        private string _icreditstate;
        private string _cmodifier;
        private DateTime? _dmoddate;
        private DateTime? _dverifydate;
        private string _ccusperson;
        private DateTime? _dcreatesystime = DateTime.Now;
        private DateTime? _dverifysystime;
        private DateTime? _dmodifysystime;
        private int? _iflowid;
        private bool _bcashsale;
        private string _cgathingcode;
        private string _cchangeverifier;
        private DateTime? _dchangeverifydate;
        private DateTime? _dchangeverifytime;
        private Guid _outid;
        private string _ccuspersoncode;
        private DateTime? _dclosedate;
        private DateTime? _dclosesystime;
        private decimal? _iprintcount;
        private decimal? _fbookratio;
        private bool _bmustbook;
        private decimal? _fbooksum;
        private decimal? _fbooknatsum;
        private decimal? _fgbooksum;
        private decimal? _fgbooknatsum;
        private string _csvouchtype;
        /// <summary>
        /// 销售类型编码必填
        /// </summary>
        public string cSTCode
        {
            set { _cstcode = value; }
            get { return _cstcode; }
        }
        /// <summary>
        /// 单据日期必填
        /// </summary>
        public DateTime dDate
        {
            set { _ddate = value; }
            get { return _ddate; }
        }
        /// <summary>
        /// 销售订单号
        /// </summary>
        public string cSOCode
        {
            set { _csocode = value; }
            get { return _csocode; }
        }
        /// <summary>
        /// 客户编码必填
        /// </summary>
        public string cCusCode
        {
            set { _ccuscode = value; }
            get { return _ccuscode; }
        }
        /// <summary>
        /// 部门编码必填
        /// </summary>
        public string cDepCode
        {
            set { _cdepcode = value; }
            get { return _cdepcode; }
        }
        /// <summary>
        /// 业务编码
        /// </summary>
        public string cPersonCode
        {
            set { _cpersoncode = value; }
            get { return _cpersoncode; }
        }
        /// <summary>
        /// 发运方式编码
        /// </summary>
        public string cSCCode
        {
            set { _csccode = value; }
            get { return _csccode; }
        }
        /// <summary>
        /// 发货地址
        /// </summary>
        public string cCusOAddress
        {
            set { _ccusoaddress = value; }
            get { return _ccusoaddress; }
        }
        /// <summary>
        /// 付款条件编码
        /// </summary>
        public string cPayCode
        {
            set { _cpaycode = value; }
            get { return _cpaycode; }
        }
        /// <summary>
        /// 币种名称必填
        /// </summary>
        public string cexch_name
        {
            set { _cexch_name = value; }
            get { return _cexch_name; }
        }
        /// <summary>
        /// 汇率
        /// </summary>
        public decimal? iExchRate
        {
            set { _iexchrate = value; }
            get { return _iexchrate; }
        }
        /// <summary>
        /// 表头税率
        /// </summary>
        public decimal? iTaxRate
        {
            set { _itaxrate = value; }
            get { return _itaxrate; }
        }
        /// <summary>
        /// 定金
        /// </summary>
        public decimal? iMoney
        {
            set { _imoney = value; }
            get { return _imoney; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string cMemo
        {
            set { _cmemo = value; }
            get { return _cmemo; }
        }
        /// <summary>
        /// 状态0未审1已审
        /// </summary>
        public int? iStatus
        {
            set { _istatus = value; }
            get { return _istatus; }
        }
        /// <summary>
        /// 制单人
        /// </summary>
        public string cMaker
        {
            set { _cmaker = value; }
            get { return _cmaker; }
        }
        /// <summary>
        /// 审核人
        /// </summary>
        public string cVerifier
        {
            set { _cverifier = value; }
            get { return _cverifier; }
        }
        /// <summary>
        /// 关闭人
        /// </summary>
        public string cCloser
        {
            set { _ccloser = value; }
            get { return _ccloser; }
        }
        /// <summary>
        /// 是否整单打折
        /// </summary>
        public bool bDisFlag
        {
            set { _bdisflag = value; }
            get { return _bdisflag; }
        }
        /// <summary>
        /// 自定义项1
        /// </summary>
        public string cDefine1
        {
            set { _cdefine1 = value; }
            get { return _cdefine1; }
        }
        /// <summary>
        /// 自定义项2
        /// </summary>
        public string cDefine2
        {
            set { _cdefine2 = value; }
            get { return _cdefine2; }
        }
        /// <summary>
        /// 自定义项3
        /// </summary>
        public string cDefine3
        {
            set { _cdefine3 = value; }
            get { return _cdefine3; }
        }
        /// <summary>
        /// 自定义项4
        /// </summary>
        public DateTime? cDefine4
        {
            set { _cdefine4 = value; }
            get { return _cdefine4; }
        }
        /// <summary>
        /// 自定义项5
        /// </summary>
        public int? cDefine5
        {
            set { _cdefine5 = value; }
            get { return _cdefine5; }
        }
        /// <summary>
        /// 自定义项6
        /// </summary>
        public DateTime? cDefine6
        {
            set { _cdefine6 = value; }
            get { return _cdefine6; }
        }
        /// <summary>
        /// 自定义项7
        /// </summary>
        public decimal? cDefine7
        {
            set { _cdefine7 = value; }
            get { return _cdefine7; }
        }
        /// <summary>
        /// 自定义项8
        /// </summary>
        public string cDefine8
        {
            set { _cdefine8 = value; }
            get { return _cdefine8; }
        }
        /// <summary>
        /// 自定义项9
        /// </summary>
        public string cDefine9
        {
            set { _cdefine9 = value; }
            get { return _cdefine9; }
        }
        /// <summary>
        /// 自定义项10
        /// </summary>
        public string cDefine10
        {
            set { _cdefine10 = value; }
            get { return _cdefine10; }
        }
        /// <summary>
        /// 退货标志1退货 0 正常
        /// </summary>
        public bool bReturnFlag
        {
            set { _breturnflag = value; }
            get { return _breturnflag; }
        }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string cCusName
        {
            set { _ccusname = value; }
            get { return _ccusname; }
        }
        /// <summary>
        /// 是否生成物料需求计划
        /// </summary>
        public bool bOrder
        {
            set { _border = value; }
            get { return _border; }
        }
        /// <summary>
        /// ID
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 单据模板号
        /// </summary>
        public int iVTid
        {
            set { _ivtid = value; }
            get { return _ivtid; }
        }
        /// <summary>
        /// 变更人
        /// </summary>
        public string cChanger
        {
            set { _cchanger = value; }
            get { return _cchanger; }
        }
        /// <summary>
        /// 业务类型
        /// </summary>
        public string cBusType
        {
            set { _cbustype = value; }
            get { return _cbustype; }
        }
        /// <summary>
        /// 信用审核人
        /// </summary>
        public string cCreChpName
        {
            set { _ccrechpname = value; }
            get { return _ccrechpname; }
        }
        /// <summary>
        /// 自定义项11
        /// </summary>
        public string cDefine11
        {
            set { _cdefine11 = value; }
            get { return _cdefine11; }
        }
        /// <summary>
        /// 自定义项12
        /// </summary>
        public string cDefine12
        {
            set { _cdefine12 = value; }
            get { return _cdefine12; }
        }
        /// <summary>
        /// 自定义项13
        /// </summary>
        public string cDefine13
        {
            set { _cdefine13 = value; }
            get { return _cdefine13; }
        }
        /// <summary>
        /// 自定义项14
        /// </summary>
        public string cDefine14
        {
            set { _cdefine14 = value; }
            get { return _cdefine14; }
        }
        /// <summary>
        /// 自定义项15
        /// </summary>
        public int? cDefine15
        {
            set { _cdefine15 = value; }
            get { return _cdefine15; }
        }
        /// <summary>
        /// 自定义项16
        /// </summary>
        public decimal? cDefine16
        {
            set { _cdefine16 = value; }
            get { return _cdefine16; }
        }
        /// <summary>
        /// 商机编号
        /// </summary>
        public string coppcode
        {
            set { _coppcode = value; }
            get { return _coppcode; }
        }
        /// <summary>
        /// 锁定人
        /// </summary>
        public string cLocker
        {
            set { _clocker = value; }
            get { return _clocker; }
        }
        /// <summary>
        /// 预完工日期
        /// </summary>
        public DateTime? dPreMoDateBT
        {
            set { _dpremodatebt = value; }
            get { return _dpremodatebt; }
        }
        /// <summary>
        /// 预发货日期
        /// </summary>
        public DateTime? dPreDateBT
        {
            set { _dpredatebt = value; }
            get { return _dpredatebt; }
        }
        /// <summary>
        /// 收款单号
        /// </summary>
        public string cgatheringplan
        {
            set { _cgatheringplan = value; }
            get { return _cgatheringplan; }
        }
        /// <summary>
        /// 发货地址编码
        /// </summary>
        public string caddcode
        {
            set { _caddcode = value; }
            get { return _caddcode; }
        }
        /// <summary>
        /// 审核状态
        /// </summary>
        public int? iverifystate
        {
            set { _iverifystate = value; }
            get { return _iverifystate; }
        }
        /// <summary>
        /// 打回次数
        /// </summary>
        public int? ireturncount
        {
            set { _ireturncount = value; }
            get { return _ireturncount; }
        }
        /// <summary>
        /// 是否控制工作流
        /// </summary>
        public int? iswfcontrolled
        {
            set { _iswfcontrolled = value; }
            get { return _iswfcontrolled; }
        }
        /// <summary>
        /// 信用审核状态
        /// </summary>
        public string icreditstate
        {
            set { _icreditstate = value; }
            get { return _icreditstate; }
        }
        /// <summary>
        /// 修改人
        /// </summary>
        public string cmodifier
        {
            set { _cmodifier = value; }
            get { return _cmodifier; }
        }
        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? dmoddate
        {
            set { _dmoddate = value; }
            get { return _dmoddate; }
        }
        /// <summary>
        /// 审核日期
        /// </summary>
        public DateTime? dverifydate
        {
            set { _dverifydate = value; }
            get { return _dverifydate; }
        }
        /// <summary>
        /// 客户联系人
        /// </summary>
        public string ccusperson
        {
            set { _ccusperson = value; }
            get { return _ccusperson; }
        }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? dcreatesystime
        {
            set { _dcreatesystime = value; }
            get { return _dcreatesystime; }
        }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? dverifysystime
        {
            set { _dverifysystime = value; }
            get { return _dverifysystime; }
        }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? dmodifysystime
        {
            set { _dmodifysystime = value; }
            get { return _dmodifysystime; }
        }
        /// <summary>
        /// 流程id
        /// </summary>
        public int? iflowid
        {
            set { _iflowid = value; }
            get { return _iflowid; }
        }
        /// <summary>
        /// 现款结算
        /// </summary>
        public bool bcashsale
        {
            set { _bcashsale = value; }
            get { return _bcashsale; }
        }
        /// <summary>
        /// 收款单号
        /// </summary>
        public string cgathingcode
        {
            set { _cgathingcode = value; }
            get { return _cgathingcode; }
        }
        /// <summary>
        /// 变更审批人
        /// </summary>
        public string cChangeVerifier
        {
            set { _cchangeverifier = value; }
            get { return _cchangeverifier; }
        }
        /// <summary>
        /// 变更审批日期
        /// </summary>
        public DateTime? dChangeVerifyDate
        {
            set { _dchangeverifydate = value; }
            get { return _dchangeverifydate; }
        }
        /// <summary>
        /// 变更审核时间
        /// </summary>
        public DateTime? dChangeVerifyTime
        {
            set { _dchangeverifytime = value; }
            get { return _dchangeverifytime; }
        }
        /// <summary>
        /// outid
        /// </summary>
        public Guid outid
        {
            set { _outid = value; }
            get { return _outid; }
        }
        /// <summary>
        /// 联系人编码
        /// </summary>
        public string ccuspersoncode
        {
            set { _ccuspersoncode = value; }
            get { return _ccuspersoncode; }
        }
        /// <summary>
        /// 关闭日期
        /// </summary>
        public DateTime? dclosedate
        {
            set { _dclosedate = value; }
            get { return _dclosedate; }
        }
        /// <summary>
        /// 关闭时间
        /// </summary>
        public DateTime? dclosesystime
        {
            set { _dclosesystime = value; }
            get { return _dclosesystime; }
        }
        /// <summary>
        /// 打印次数
        /// </summary>
        public decimal? iPrintCount
        {
            set { _iprintcount = value; }
            get { return _iprintcount; }
        }
        /// <summary>
        /// 定金比例
        /// </summary>
        public decimal? fbookratio
        {
            set { _fbookratio = value; }
            get { return _fbookratio; }
        }
        /// <summary>
        /// 必有定金
        /// </summary>
        public bool bmustbook
        {
            set { _bmustbook = value; }
            get { return _bmustbook; }
        }
        /// <summary>
        /// 定金原币金额
        /// </summary>
        public decimal? fbooksum
        {
            set { _fbooksum = value; }
            get { return _fbooksum; }
        }
        /// <summary>
        /// 定金累计实收原币金额
        /// </summary>
        public decimal? fbooknatsum
        {
            set { _fbooknatsum = value; }
            get { return _fbooknatsum; }
        }
        /// <summary>
        /// 定金原币金额
        /// </summary>
        public decimal? fgbooksum
        {
            set { _fgbooksum = value; }
            get { return _fgbooksum; }
        }
        /// <summary>
        /// 定金累计实收本币金额
        /// </summary>
        public decimal? fgbooknatsum
        {
            set { _fgbooknatsum = value; }
            get { return _fgbooknatsum; }
        }
        /// <summary>
        /// nvarchar10没有标
        /// </summary>
        public string csvouchtype
        {
            set { _csvouchtype = value; }
            get { return _csvouchtype; }
        }
        #endregion Model

    }
}

